package com.csx.array;

/**
 * @author: 陈胤训
 * @create: 2019-03-22 17:08
 **/
public class Student {

    private String name;

    private int score;

    public Student(String name, int score) {
        this.name = name;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", score=" + score +
                '}';
    }

    public static void main(String[] args) {
        Array<Student> studentArray = new Array<>();
        studentArray.addLast(new Student("c",1));
        studentArray.addLast(new Student("s",2));
        studentArray.addLast(new Student("c",3));
        System.out.println(studentArray);
    }
}
